/**
 * 
 */
package com.onstar.cn.map.common;

/**
 * @author Qiying Gong
 *
 * @Created 2013-10-24
 */
public class OLocation {
	private double latitude;
	private double longitude;
	private double altitude;
	private float accuracy;
	private float bearing;
	private String provider;
	private float speed;
	private long time;
	
	private String adcode;
	private String district;
	private String city;
	private String cityCode;
	private String provience;
	/**
	 * @return the latitude
	 */
	public double getLatitude() {
		return latitude;
	}
	/**
	 * @param latitude the latitude to set
	 */
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	/**
	 * @return the longitude
	 */
	public double getLongitude() {
		return longitude;
	}
	/**
	 * @param longitude the longitude to set
	 */
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
	/**
	 * @return the altitude
	 */
	public double getAltitude() {
		return altitude;
	}
	/**
	 * @param altitude the altitude to set
	 */
	public void setAltitude(double altitude) {
		this.altitude = altitude;
	}
	/**
	 * @return the accuracy
	 */
	public float getAccuracy() {
		return accuracy;
	}
	/**
	 * @param accuracy the accuracy to set
	 */
	public void setAccuracy(float accuracy) {
		this.accuracy = accuracy;
	}
	/**
	 * @return the bearing
	 */
	public float getBearing() {
		return bearing;
	}
	/**
	 * @param bearing the bearing to set
	 */
	public void setBearing(float bearing) {
		this.bearing = bearing;
	}
	/**
	 * @return the provider
	 */
	public String getProvider() {
		return provider;
	}
	/**
	 * @param provider the provider to set
	 */
	public void setProvider(String provider) {
		this.provider = provider;
	}
	/**
	 * @return the speed
	 */
	public float getSpeed() {
		return speed;
	}
	/**
	 * @param speed the speed to set
	 */
	public void setSpeed(float speed) {
		this.speed = speed;
	}
	/**
	 * @return the time
	 */
	public long getTime() {
		return time;
	}
	/**
	 * @param time the time to set
	 */
	public void setTime(long time) {
		this.time = time;
	}
	/**
	 * @return the adcode
	 */
	public String getAdcode() {
		return adcode;
	}
	/**
	 * @param adcode the adcode to set
	 */
	public void setAdcode(String adcode) {
		this.adcode = adcode;
	}
	/**
	 * @return the district
	 */
	public String getDistrict() {
		return district;
	}
	/**
	 * @param district the district to set
	 */
	public void setDistrict(String district) {
		this.district = district;
	}
	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}
	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}
	/**
	 * @return the cityCode
	 */
	public String getCityCode() {
		return cityCode;
	}
	/**
	 * @param cityCode the cityCode to set
	 */
	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}
	/**
	 * @return the provience
	 */
	public String getProvience() {
		return provience;
	}
	/**
	 * @param provience the provience to set
	 */
	public void setProvience(String provience) {
		this.provience = provience;
	}
	
	@Override
	public String toString() {
		StringBuffer string = new StringBuffer();
		string.append("loc("+this.latitude+","+this.longitude+")");
		string.append(", City:"+this.city);
		string.append("("+this.cityCode+")");
		string.append("provider:");
		string.append(this.provider);
		return string.toString();
	}
}
